﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using SmartRoute.Analytics;
using SmartRoute.BingMaps;


namespace SmartRoute.View
{
    /// <summary>
    /// Interaction logic for Window2.xaml
    /// </summary>
    /// 
    //THIS IS A TEST WINDOW TO DEVELOP ON AND RUN ALGORITHM TESTING

    //THIS WINDOW MAKES USE OF THE IMAGERYGROUP MODULE WHICH IS NOT USED IN THE REST OF THE PROGRAM.
    public partial class Window2 : Window
    {
        AlgorithmTesting testRun;
        ImageryGroup currentGroup;
        public Window2()
        {
            

            testRun = new AlgorithmTesting();

            currentGroup = new ImageryGroup();
            
            testRun.testCorrectness();

            

            currentGroup.addImageryModule(testRun.Display);

            

            this.DataContext = currentGroup;


            currentGroup.setCurrent(0);


            InitializeComponent();

            

            this.Show();

            
            
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            currentGroup.changeCurrentRouteDisplayedMap(true, Int32.Parse(textBox2.Text));
            currentGroup.bindingTest();
        }

        private void button2_Click(object sender, RoutedEventArgs e)
        {
            currentGroup.changeCurrentRouteDisplayedMap(false, Int32.Parse(textBox2.Text));
            currentGroup.bindingTest();
        }

        private void button3_Click(object sender, RoutedEventArgs e)
        {
            currentGroup.changeCurrentRouteDirectionsDisplayed(Int32.Parse(textBox1.Text));
        }
    }
}
